package com.gamenew.bluetoothdemo.data;

import java.util.Map;

/**
 * Created by Administrator on 2016/9/6.
 */
public class GattAttributes {

    //血压
    public static final String BRA_SERVER="00010203-0405-0607-0809-0A0B0C0D1688";
    public static final String BRA_CHAR="00010203-0405-0607-0809-0A0B0C0D2B11";

    public static final String TURN_ON="A1FE01";//开
    public static final String TURN_OFF="A1FF00";//关
    public static final String STRENGTH_MODE_1="A2FF00";//20%
    public static final String STRENGTH_MODE_2="A2FE01";//40%
    public static final String STRENGTH_MODE_3="A2FD02";//60%
    public static final String STRENGTH_MODE_4="A2FC03";//80%
    public static final String STRENGTH_MODE_5="A2FB04";//100%
    public static final String INFRARED_ON="A3FE01";//红外线开
    public static final String INFRARED_OFF="A3FF00";//红外线关
    public static final String CARBON_ON="A4FE01";//开
    public static final String CARBON_OFF="A4FF00";//关
    public static final String MASSAGE_MODE_1="A5FF00";
    public static final String MASSAGE_MODE_2="A5FE01";
    public static final String MASSAGE_MODE_3="A5FD02";
    public static final String MASSAGE_MODE_4="A5FC03";
    public static final String MASSAGE_MODE_5="A5FB04";
    public static final String MASSAGE_MODE_6="A5FA05";
    public static final String MASSAGE_MODE_7="A5F906";
    public static final String MASSAGE_MODE_8="A5F807";
    public static final String MASSAGE_MODE_9="A5F708";
    public static final String MASSAGE_LEFT="A6FF00";
    public static final String MASSAGE_CENTER="A6FE01";
    public static final String MASSAGE_RIGHT="A6FD02";
    public static final String MUSIC_MODE_1="A7FF00";//音乐模式1
    public static final String MUSIC_MODE_2="A7FE01";
    public static final String MUSIC_MODE_3="A7FD02";
    public static final String MUSIC_MODE_4="A7FC03";
    public static final String MUSIC_MODE_5="A7FB04";
    public static final String MUSIC_MODE_6="A7FA05";
    public static final String MUSIC_MODE_7="A7F906";
    public static final String MUSIC_MODE_8="A7F807";
    public static final String MUSIC_MODE_9="A7F708";
    public static final String MUSIC_MODE_10="A7F609";
    public static final String MUSIC_MODE_11="A7F50A";
    public static final String MUSIC_MODE_12="A7F40B";
    public static final String MUSIC_MEDIA="A7F30C";
    public static final String MUSIC_HEAD="A8";//音量头

    public static final String MUSICSSTOP="A7FF00";
    public static final String MUSICPAUSE="A8FF00";



    public static String lookup(String uuid, String defaultName, Map<String,String> attributes) {
        String name = attributes.get(uuid);
        return name == null ? defaultName : name;
    }
}
